package com.lightsh.object;

import com.lightsh.gui.BaseScreen;
import com.lightsh.gui.NormalObjectScreen;

public class RectangleObjectImpl extends RectangleObject{

	public RectangleObjectImpl(BaseScreen screen, float x, float y,
			float halfWidth, float halfHeight) {
		super(screen, x, y, halfWidth, halfHeight);
		if(!(mParentScreen instanceof NormalObjectScreen)){
			throw new IllegalArgumentException("screen must be instanceof NormalObjectScreen");
		}
	}

	@Override
	public void create() {
		super.create();
		NormalObjectScreen screen = (NormalObjectScreen) mParentScreen;
		screen.addObject(this);
	}
}
